@import '~antd/lib/style/themes/default.less';

@pro-header-hover-bg: rgba(0, 0, 0, 0.025);

.header {
  height: @layout-header-height;
  padding: 0;
  //background: #002140;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  position: relative;
}

.logo {
  height: @layout-header-height;
  line-height: @layout-header-height;
  vertical-align: top;
  display: inline-block;
  padding: 0 0 0 24px;
  cursor: pointer;
  font-size: 20px;
  img {
    display: inline-block;
    vertical-align: middle;
  }
}

.menu {
  :global(.anticon) {
    margin-right: 8px;
  }
  :global(.ant-dropdown-menu-item) {
    min-width: 160px;
  }
}

.trigger {
  font-size: 20px;
  height: @layout-header-height;
  cursor: pointer;
  transition: all 0.3s, padding 0s;
  padding: ~'calc((@{layout-header-height} - 20px) / 2)' 24px;
  padding-left: 6px;
  &:hover {
    background: @pro-header-hover-bg;
  }
}

.right {
  float: right;
  height: 100%;
  overflow: hidden;
  .action {
    cursor: pointer;
    padding: 0 12px;
    display: inline-block;
    transition: all 0.3s;
    height: 100%;
    > i {
      vertical-align: middle;
      color: @text-color;
    }
    &:hover {
      background: @pro-header-hover-bg;
    }
    &:global(.opened) {
      background: @pro-header-hover-bg;
    }
  }
  .search {
    padding: 0 12px;
    &:hover {
      background: transparent;
    }
  }
  .account {
    .avatar {
      margin: ~'calc((@{layout-header-height} - 24px) / 2)' 0;
      margin-right: 8px;
      color: @primary-color;
      background: rgba(255, 255, 255, 0.85);
      vertical-align: top;
    }
  }
}

.dark {
  height: @layout-header-height;
  .action {
    color: rgba(255, 255, 255, 0.85);
    > i {
      color: rgba(255, 255, 255, 0.85);
    }
    &:hover,
    &:global(.opened) {
      background: @primary-color;
    }
    :global(.ant-badge) {
      color: rgba(255, 255, 255, 0.85);
    }
  }
}

@media only screen and (max-width: @screen-md) {
  .header {
    :global(.ant-divider-vertical) {
      vertical-align: unset;
    }
    .name {
      display: none;
    }
    i.trigger {
      padding: 22px 12px;
    }
    .logo {
      padding-left: 12px;
      padding-right: 12px;
      position: relative;
      .logo_text{
        color: #000;
        font-weight: bold;
        font-family: '宋体';
      }
    }
    .right {
      position: absolute;
      right: 12px;
      top: 0;
      //background: #002140;
      .account {
        .avatar {
          margin-right: 0;
        }
      }
    }
  }
}
.login_wrapper{
  display: inline-block;
  span{
    padding:0 5px;
    //color: rgba(255, 255, 255, .8)
    color: #139BEA;
    cursor: pointer;
  }
}

.content_wrapper{
  margin-top: 24px;
  border: 1px solid #ccc;
  border-radius: 5px;
  &:focus{
    outline: 1px solid #000;
  }
}
.textArea {
  border: none;
  resize: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-modify: read-write-plaintext-only;
  outline: none;
  box-shadow: none;
  :hover{
    outline: none;
  }
  :focus{
    outline: none;
  }
}
.picture_wrapper{
  padding-left: 5px;
}
.submit_btn_wrapper{
  margin-top: 24px;
  text-align: center;
}
.suggest{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 18px;
  font-variant: tabular-nums;
  line-height: 40px;
  list-style: none;
  font-feature-settings: 'tnum';
  position: fixed;
  right: 16px;
  bottom: 100px;
  z-index: 10;
  width: 40px;
  height: 40px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  border-radius: 50%;
  cursor: pointer;
  &:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  }
}
